<?php
namespace Shopex\Contracts\Cart;

use Shoepx\Contracts\Cart\CartItem;

/**
 * 购物车统一接口
 *
 * @package default
 * @author 
 */
interface Cart
{
    public function add(CartItem $cartItem);
    public function update(CartItem $cartItem);
    public function delete(CartItem $cartItem);
    public function deleteByIndex(CartItem $cartItem);
    public function get($index);
    public function getAll();
    public function clear();
}
